package com.onegene.pdf.component.report.drug;

import com.itextpdf.layout.Style;
import com.onegene.pdf.component.report.gene.GenoColor;

/**
 * @author: laoliangliang
 * @description:
 * @create: 2020/5/20 8:34
 **/
public class DrugStyle {
    public static Style getDefaultPoint() {
        Style style = new Style();
        style.setWidth(6);
        style.setHeight(6);
        style.setMarginRight(6);
        return style;
    }

    public static Style getTitleStyle() {
        Style style = new Style();
        style.setFontSize(22);
        style.setBold();
        style.setFontColor(GenoColor.getThemeColor());
        return style;
    }

    public static Style getSecondTitleStyle() {
        Style style = new Style();
        style.setFontSize(14);
        style.setFontColor(GenoColor.getThemeColor());
        return style;
    }

    public static Style getSecondSmallTitleStyle() {
        Style style = new Style();
        style.setFontSize(14);
        style.setFontColor(GenoColor.getThemeColor());
        style.setMarginLeft(5);
        style.setBold();
        return style;
    }

    public static Style getThirdTitleStyle() {
        Style style = new Style();
        style.setFontSize(13);
        style.setFontColor(GenoColor.getRedColor());
        return style;
    }

    public static Style getThreeTitleOrangeStyle() {
        Style style = new Style();
        style.setFontSize(13);
        style.setFontColor(DrugColor.getOrangeColor());
        return style;
    }

    public static Style getGeneDescCellStyle() {
        Style style = new Style();
        style.setPadding(7);
        style.setFontSize(10);
        return style;
    }

    public static Style getGeneDescCellHeadStyle() {
        Style style = new Style();
        style.setPadding(3);
        style.setFontSize(10);
        return style;
    }

    public static Style getSignStyle() {
        Style style = new Style();
        style.setFontSize(10);
        return style;
    }
}